package com.lindom.pojo;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;


@Data
public class Person {

    private String name;
    @Autowired
    @Qualifier(value = "cat1")
    private Cat cat;
    @Resource(name = "dog4")
    private Dog dog;


}
